#include<iostream>
#include<string>
#include<cmath>
using namespace std;
void game(string &information,int rule){
  int left=0,right=0;
  for(auto &info:information){
    if(info=='E'){
      cout<<left<<":"<<right<<endl;
      return;
    }else if(info=='W') left++;
    else if(info=='L') right++;
    if(abs(left-right)>=2&&max(left,right)>=rule){
      cout<<left<<":"<<right<<endl;
      left=right=0;
    }
  }
}
int main(){
  string info,str;
  while (cin>>str){
    info+=str;
  }
  game(info,11);
  cout<<endl;
  game(info,21);
}